﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace _02.GetMaxNumTest
{
    [TestClass]
    public class GetMaxUnitTest
    {
        [TestMethod]
        public void TestMethodNormalNumbers()
        {
            int result = GetMaxNum.GetMax(12,888);
            Assert.AreEqual(888, result);
        }

        [TestMethod]
        public void TestMethodWithNegativeNumber()
        {
            int result = GetMaxNum.GetMax(-787897, 87897);
            Assert.AreEqual(87897, result);
        }

        [TestMethod]
        public void TestMethodWithTwoZero()
        {
            int result = GetMaxNum.GetMax(0, 0);
            Assert.AreEqual(0, result);
        }

        [TestMethod]
        public void TestMethodWithOneZero()
        {
            int result = GetMaxNum.GetMax(0, 6666666);
            Assert.AreEqual(6666666, result);
        }

        [TestMethod]
        public void TestMethodWithOneBorderNumber()
        {
            int result = GetMaxNum.GetMax(2, int.MaxValue);
            Assert.AreEqual(int.MaxValue, result);
        }

        [TestMethod]
        public void TestMethodWithTwoBorderNumbers()
        {
            int result = GetMaxNum.GetMax(int.MinValue, int.MaxValue);
            Assert.AreEqual(int.MaxValue, result);
        }
    }
}
